package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;

import java.util.List;

public interface NewMenuService {
    public PageResult findPage(QueryPageBean queryPageBean);
    public List<String> findTopLevel();
    public void add(Menu menu);
    public Boolean delete(Integer id);
    public List<Menu> findMenuByUsername(String username);
    public Integer findParentIdByParentName(String name);
    public Boolean checkParentMenu(Integer id);
    public String findParentNameById(Integer id);
    public Menu findById(Integer id);
    public void edit(Menu menu);
}
